package com.txd.mofa.adapter;


import android.widget.ImageView;

import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.txd.mofa.R;

import java.util.Map;

public class FenleiAdapter1 extends BaseQuickAdapter<Map<String, String>, BaseViewHolder> {

    public FenleiAdapter1(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(BaseViewHolder helper, Map<String, String> item) {



        ImageView iv = helper.getView(R.id.iv);

        Glide.with(mContext).load(item.get("img")).into(iv);

        helper.setText(R.id.tv,item.get("title"));






    }
}
